package thread;

/*
 * @author zzr
 * @date: 2025/04/14  19:01
 * @description:
 */
public class Thread7 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() ->{
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        });

        System.out.println("start 之前的 isAlive 状态 + " + t.isAlive());
        t.start();
        System.out.println("start 之后的 isAlive 状态 + " + t.isAlive());
        Thread.sleep(3000);
        System.out.println("线程结束后的 isAlive 状态" + t.isAlive());
    }
}
